package com.fyzk.activity.lottery.togetherbuy;


public class HeMaiHallComparator
//		implements Comparator<HeMaiHallInfor>
{
	
	private int type;
	private int up_or_down;
	
	public static final int TYPE_JINDU = 0;
	public static final int TYPE_ZHANJI = 1;
	public static final int UP = 0;
	public static final int DOWN = 1;
	

	/**
	 * list排序
	 * @param type	（0:进度、1:战绩）
	 * @param up_or_down 	(0升序、1降序)
	 */
	public HeMaiHallComparator(int type, int up_or_down){
		this.type = type;
		this.up_or_down = up_or_down;
	}

//	@Override
//	public int compare(HeMaiHallInfor lhs, HeMaiHallInfor rhs) {
//		// TODO Auto-generated method stub
//		switch (type) {
//		case TYPE_JINDU:
//			switch (up_or_down) {
//			case UP:
//
//				return lhs.jinDu - rhs.jinDu;//升序
//			case DOWN:
//
//				return rhs.jinDu - lhs.jinDu;//降序
//			default:
//				break;
//			}
//			break;
//		case TYPE_ZHANJI:
//			switch (up_or_down) {
//			case UP:
//
//				return lhs.zhanJi - rhs.zhanJi;//升序
//			case DOWN:
//
//				return rhs.zhanJi - lhs.zhanJi;//降序
//			default:
//				break;
//			}
//			break;
//		default:
//			break;
//		}
//		return 0;
//	}

}
